package com.yq.cp.controller.data;

import com.yq.cp.entity.common.ApiResult;
import com.yq.cp.entity.data.vo.NkDataVo;
import com.yq.cp.service.data.NkDataService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 数据推送接口
 * </p>
 *
 * @author zh
 * @since 2023-03-17
 */
@RestController
@RequestMapping("/nk")
public class NkDataController {

    @Resource
    NkDataService nkDataService;
    @RequestMapping("/add")
    public ApiResult add(@RequestBody List<NkDataVo> list){
        nkDataService.add(list);
        return ApiResult.ok();
    }
}
